// 业务接口都写在interface这个文件内
import axios from '/src/service/api.js';

const prefix = '/api';

// 获取用户信息
export function getUserInfo(req) {
  return axios.get(`${prefix}/sys/user/getUserInfo`, {params: req});
}
// 上传文件
export function uploadFile(req) {
  return axios.post(`${prefix}/sys/fileUpload/uploadFile`, req, {headers: {'Content-Type': 'multipart/form-data'}});
}

// 在途监测查询
export function onRoadPage (req) {
  return axios.post(`${prefix}/containerVehicle/page`, req );
}

// 车辆轨迹
export function getTrajectoryOpen (req) {
  return axios.post(`${prefix}/containerVehicle/getTrajectoryOpen`, req );
}

// 进出境港分析查询
export function portDataPage (req) {
  return axios.post(`${prefix}/portData/page`, req );
}
